<?php 
interface demo
{
    const NAME = "名称";
    public function fun1();
    public function fun2();
}
interface demo2
{
    public function fun3();
    public function fun4();
}
interface demo3
{
    const TEST = "Test";
    public function fun5();
}
class MyPc implements demo, demo2
{
    public function fun1()
    {
        echo "++++++++++<br />";
    }
    public function fun2()
    {
        echo "----------<br />";
    }
    public function fun3()
    {
        echo "1111111111<br />";
    }
    public function fun4()
    {
        echo "2222222222<br />";
    }
}
#MyPs继承MyPc,实现demo3接口
class MyPs extends MyPc implements demo3
{
    public function fun5()
    {
        echo "继承类后引用接口";
    }
}
$p = new MyPs;
$p->fun1();
$p->fun2();
$p->fun3();
$p->fun4();
$p->fun5();
